package com.game;


import android.graphics.Bitmap;

public class Button extends BasicButton{
	
	public Button(int id, float x, float y, Bitmap onBitmap, Bitmap offBitmap)
	{
		super(id, x, y, onBitmap, offBitmap);
		
	}
	
	
	@Override
	protected Bitmap GetCurrentBitmap()
	{
		if(m_State == State.Selected) return m_on; else return m_off;
	}
	
	@Override
	protected  void SelectTouchedState()
	{
		switch (m_State) 
		{
		case Unselected:
			m_State = State.Selected;
			break;
		case Selected:
			m_State = State.Used;
			break;	
		default:
			break;
		}
	}
	
	

}
